﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace store.cyt369.com.models
{
    /// <summary>
    /// 店铺表
    /// </summary>
    [Table("TB_Store")]
    public class Store
    {
        public int Id { get; set; }
        /// <summary>
        /// 店铺名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 占地面试
        /// </summary>
        public int Area {  get; set; }
        /// <summary>
        /// 租金
        /// </summary>
        public int Rent { get; set; }
        /// <summary>
        /// 转让费  （*万元 | 面议）
        /// </summary>
        public string AssignmentFee {  get; set; }
        /// <summary>
        /// 当前经营
        /// </summary>
        public string PresentOperation { get; set; }
        /// <summary>
        /// 经营状态 0停止经营 1营业中
        /// </summary>
        public int OperatingState {  get; set; }
        /// <summary>
        /// 可否空转
        /// </summary>
        public bool CanIdling {  get; set; }
        /// <summary>
        /// 剩余合同
        /// </summary>
        public string ResidualContract { get; set; }
        /// <summary>
        /// 经度
        /// </summary>
        public double Latitude { get; set; }
        /// <summary>
        /// 纬度
        /// </summary>
        public double Longitude { get; set; }
        /// <summary>
        /// 详细地址
        /// </summary>
        public string DetailedAddress {  get; set; }
        /// <summary>
        /// 所在城市ID
        /// </summary>
        public int CityID {  get; set; }
        /// <summary>
        /// 适合经营
        /// </summary>
        public string FitOperation {  get; set; }

        /// <summary>
        /// 审核状态
        /// </summary>
        public int ReviewResult { get; set; }

        #region 编辑
        /// <summary>
        /// 编辑人编号
        /// </summary>
        public int? EditorID { get; set; }

        /// <summary>
        /// 编辑人用户名
        /// </summary>
        public string? EditorName { get; set; }

        /// <summary>
        /// 编辑人姓名
        /// </summary>
        public string? EditorFullName { get; set; }

        /// <summary>
        /// 编辑时间
        /// </summary>
        public DateTime? EditDate { get; set; }
        #endregion

        #region 创建
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 创建者用户名
        /// </summary>
        public string? CreatorName { get; set; }

        /// <summary>
        /// 创建者姓名
        /// </summary>
        public string? CreatorFullName { get; set; }
        #endregion


        /// <summary>
        /// 是否删除的状态字段
        /// </summary>
        public bool IsDeleted {  get; set; }


        /// <summary>
        /// 店铺扩展
        /// </summary>
        public StoreExtension StoreExtension { get; set; }

        /// <summary>
        /// 店铺图片表
        /// </summary>
        public List<StoreImage> StoreImages { get; set; }

        /// <summary>
        /// 轮播图
        /// </summary>
        public List<Carousel> Carousels { get; set; }

        /// <summary>
        /// 热点店铺表 1-n
        /// </summary>
        public List<StoreHot> StoreHot { get; set; }

        /// <summary>
        /// 咨询表 1-n
        /// </summary>
        public List<Inquiry> Inquiries { get; set; }

        /// <summary>
        /// 类别表 ID
        /// </summary>
        public int StoreCategoryID {  get; set; }
        /// <summary>
        /// 类别表
        /// </summary>
        public StoreCategory StoreCategory { get; set; }
    }
}
